const { BrowserWindow } = require("electron");
const path = require("path");
module.exports.createAddChannelWin = (parent) => {
    win = new BrowserWindow({
        width: 300,
        height: 400,
        parent: parent,
        show: false,
        modal: true,
        frame: false,
        resizable: false,
        maximizable: false,
        webPreferences: {
          preload: path.join(__dirname, "../preload.js"),
        },
    });
    win.loadFile(path.join(__dirname, "../../page/addChannel/index.html"));
    return win
}
